<template>
  <view :data-theme="g.theme">
    <BasicComponents></BasicComponents>
    <CustomNavbar title="日志"></CustomNavbar>
    <ProForm
      ref="ProFormRef"
      :options="addForm.options"
      :editable="addForm.editable"
      @get-model="from => (addForm.form = from)"
      @save="saveMethod => (addForm.save = saveMethod)"
      @submit="submitForm"
    >
    </ProForm>

    <BottomButton @right-click="addForm.save"></BottomButton>
  </view>
</template>
<script setup lang="ts">
import { useForm } from "./hooks/use-addForm";
const { addForm, submitForm } = useForm();
const g = useThemeStore();
</script>
